﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using YDNoteOpenAPI4N.YDAPI;
using YDNoteOpenAPI4N.YDConsumer;
using mshtml;

namespace YDNoteOpenAPI4N.Test.WPF
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : NavigationWindow
    {
        public MainWindow()
        {
            InitializeComponent();
        }

   

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
           
        }

  



        private void button1_Click(object sender, RoutedEventArgs e)
        {
          
            //  var grantedAccess = consumer.ProcessUserAuthorization(consumer.TokenManager.RequestToken, this.textBox1.Text);
            // string accessToken = grantedAccess.AccessToken;
            // this.textBox2.Text = accessToken;
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            //var youDao = new YDWebConsumer(YDAuthBaseInfo.ServiceDescription, tokenManager);
            //var api = new YDUserAPI(youDao);
            //var ydUser = api.GetUserInfo();
        //    this.label1.Content = ydUser.user;
        }
    }
}
